package day13;

import java.io.FileWriter;
import java.io.IOException;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileTest {
    public static void main(String[] args) {
        String s="hello学士后";
        try {
            FileWriter fw=new FileWriter("D:\\hello.txt");
            fw.write(s);
            fw.flush();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
